package abc2;

public class abc2 {

	public static void main(String[] args) {
		int j=0;
		for(int i=200;i<=300;i++){
			if(i%3==0||i%4==0){
				if(!(i%3==0&&i%4==0)){
				System.out.print(i+" ");
				j++;
				if(j==10){
					j=0;
					System.out.println(" ");
				}
				}
			}
		}
	}
}
